| Muhammad Uzair
The Business Process Flows (BPF) is one of the most valuable features in Microsoft Dynamics CRM. Initially I thought
that we cannot interact with Business Process Flow fields but after some research I got to know that we can interact
with BPF with javascript and here is the code which I have written to hide and show fields used in BPF:
CODE
function BPF(executionContext){
debugger;
var formContext = executionContext.getFormContext();
var PostedToCentralDispatch = formContext.getAttribute("gs_postedtocentraldispatch").getValue();
if(PostedToCentralDispatch == true){
formContext.getControl("header_process_gs_postedtocentraldispatchdatetime").setVisible(true);
}
else{
formContext.getControl("header_process_gs_postedtocentraldispatchdatetime").setVisible(false);
}
}
Join us next time, as we continue our journey of learning canvas apps.Click here to learn more about Imperium's Power Apps Services. We hope this information was useful, and we look forward to sharing more insights into the Power Platform world.